import { network } from '@/utils';
import { basic } from '../../../../../config/Apis';

export async function queryCellList(params: any) {
  return network.get(basic.cell_list, { params });
}

export async function queryCellConf(params: any) {
  return network.get(basic.cellConf_list, { params });
}

export async function queryWhiteCourier(params: any) {
  return network.get(basic.courierWhitelist_added, { params });
}

export async function queryOtherCourier(params: any) {
  return network.get(basic.courierWhitelist_notAdd, { params });
}

export async function addCourier(params: any) {
  return network.post(basic.courierWhitelist_oper, { data: params });
}

export async function deleteCourier(params: { id: number }) {
  return network.deleter(basic.courierWhitelist_oper, { params });
}

export async function saveCellConf(params: any) {
  return network.post(basic.saveCellConf, { data: params });
}
